/* Fenil Chandarana Fab Academy 2022 Webpage link: https://fabacademy.org/2022/labs/vigyanashram/students/fenil-chandarana/ */ //Fab Academy 2021 - Fab Lab León //Bluetooth //Adrianino //ATtiny1614 #include SoftwareSerial mySerial(1, 0); // RX, TX const int led = 10 ; // LED pin int option; void setup(){ mySerial.begin(9600); //speed of the communications pinMode(led, OUTPUT); } void loop(){ //if there is pending information if (mySerial.available()>0){ //let's read the option char option = mySerial.read(); //if the option is between '1' and '9' if (option >= '1' && option <= '9') { //we subtract the value '0' to obtain the number sent option -= '0'; for(int i=0;i